home *** CD-ROM | disk | FTP | other *** search
/ Easy Baby Massage / Easy Baby Massage.iso / pc / content / main.dcr / Internal_52_select chapter.ls < prev    next >
Encoding:
Text File  |  2007-04-22  |  624 b   |  33 lines

  1. global chaptercount, firstchapter, curchapter
  2.  
  3. on mouseEnter
  4.   n = the currentSpriteNum
  5.   if sprite(n + 20).member.text = EMPTY then
  6.     exit
  7.   end if
  8.   sprite(n + 10).foreColor = 4
  9.   sprite(n + 20).foreColor = 4
  10.   cursor(280)
  11. end
  12.  
  13. on mouseLeave
  14.   n = the currentSpriteNum
  15.   sprite(n + 10).foreColor = 0
  16.   sprite(n + 20).foreColor = 0
  17.   cursor(-1)
  18. end
  19.  
  20. on mouseUp
  21.   n = the currentSpriteNum
  22.   if sprite(n + 20).member.text = EMPTY then
  23.     exit
  24.   end if
  25.   curchapter = firstchapter + (n - 7)
  26.   if curchapter > chaptercount then
  27.     curchapter = chaptercount
  28.   end if
  29.   gotovideo()
  30.   refalshchaptercontent()
  31.   cursor(-1)
  32. end
  33.